<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>

<!DOCTYPE html>
<html>

<head>
<meta charset="UTF-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>二手物品列表-柚子校园</title>
<link href="Public/plugins/hplus/css/bootstrap.min.css?v=3.3.6"
	rel="stylesheet">
<link href="Public/plugins/hplus/css/font-awesome.min.css?v=4.4.0"
	rel="stylesheet">
<link href="Public/plugins/hplus/css/animate.css" rel="stylesheet">
<link href="Public/plugins/hplus/css/style.css?v=4.1.0" rel="stylesheet">
<link href="Public/public/pace-theme-flash.css" rel="stylesheet">
<link href="Public/home/css/public/common.css" rel="stylesheet">
<link rel="stylesheet" href="Public/Fonts/items/iconfont.css"
	type="text/css" />

<link rel="stylesheet" type="text/css" href="css/jquery.slider.css" />
<link type="text/css" href="Public/Fonts/iconfont.css" rel="stylesheet" />
<script type="text/javascript" src="js/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="js/jquery.slider.min.js"></script>
<style type="text/css">
@font-face {
	font-family: "iconfont";
	src: url('iconfont.eot'); /* IE9*/
	src: url('iconfont.eot#iefix') format('embedded-opentype'),
		/* IE6-IE8 */
          url('iconfont.woff') format('woff'), /* chrome, firefox */
          url('iconfont.ttf') format('truetype'),
		/* chrome, firefox, opera, Safari, Android, iOS 4.2+*/
          url('iconfont.svg#iconfont') format('svg'); /* iOS 4.1- */
}

.iconfont {
	font-family: "iconfont" !important;
	font-size: 16px;
	font-style: normal;
	-webkit-font-smoothing: antialiased;
	-webkit-text-stroke-width: 0.2px;
	-moz-osx-font-smoothing: grayscale;
}
</style>
</head>

<link rel="stylesheet" type="text/css"
	href="Public/plugins/swiper/swiper-3.4.2.min.css">
<link rel="stylesheet" type="text/css"
	href="Public/home/css/sale/goods.css">
<body>

	<s:include value="nav.jsp"></s:include>

	<div class="item-box">
		<s:include value="menu.jsp"></s:include>
	</div>
	<div class="sidebar">
		<div class="btn block">
			<div class="ershou">
				<a href="Fabu">发布二手</a>
			</div>
			<div class="qiugou">
				<a href="/release/buy">发布求购</a>
			</div>
		</div>
	</div>

	<div class="main" style="padding-bottom: 0px;">
		<div class="box" style="margin-top: 20px;">
			<script type="text/javascript">
				$(document).ready(
						function($) {
							$(".slider").slideshow(
									{
										width : 1020,
										height : 267,
										transition : [ 'bar', 'Rain', 'square',
												'squareRandom', 'explode' ]
									});
						});
			</script>
			<div style="width: 980px; margin: 0 auto;">
				<div class="slider">
					<div>
						<a href="#"><img class="images" src="images/datouwang1.jpg"
							alt=""></a>
					</div>
					<div>
						<a href="#"><img class="images" src="images/datouwang2.jpg"
							alt=""></a>
					</div>
					<div>
						<a href="#"><img class="images" src="images/datouwang3.jpg"
							alt=""></a>
					</div>
					<div>
						<a href="#"><img class="images" src="images/datouwang4.jpg"
							alt=""></a>
					</div>
					<div>
						<a href="#"><img class="images" src="images/datouwang5.jpg"
							alt=""></a>
					</div>
					<div>
						<a href="#"><img class="images" src="images/datouwang6.jpg"
							alt=""></a>
					</div>
					<div>
						<a href="#"><img class="images" src="images/datouwang7.jpg"
							alt=""></a>
					</div>
				</div>
			</div>
			<div class="adv">
				
				<ul class="goodsbox clearfix">
					<s:iterator value="#session.g.goods" var="x">
						<li class="items clearfix">
							<div class="class-item">
								<div class="class-bg-layer"></div>
								<div class="class-item-bg">
									<a href="buy?id=<s:property value = "#x.id"/>&uid=<s:property value = "#session.user.id"/>"
										class="class-img"> <img class="img-responsive lazyload"
										src="<s:property value="#x.images"/>">
									</a>
									<div class="pricehot clearfix">
										<span class="price">￥&nbsp;<span><s:property
													value="#x.price" /></span></span> <span class="hot">点击数&nbsp;<span><s:property
													value="#x.click" /></span></span>
									</div>
									<a href="buy?id=<s:property value = "#x.id"/>&uid=<s:property value = "#session.user.id"/>" class="title"><s:property
											value="#x.name" /> </a>
									<div class="some  clearfix">
										<span class="school"><s:property value="#x.school.name" /></span>
									</div>
								</div>
							</div>
						</li>
					</s:iterator>
				</ul>
				<div class="row text-center">
					<nav>
						<ul class="pagination">
						<s:if test="page>1">
								<li ><a
										href="/SecondaryMarket/sale?opt=<s:property value="#session.opt"/>&page=1">首页</a></li>
								<li ><a
										href="/SecondaryMarket/sale?opt=<s:property value="#session.opt"/>&page=<s:property value="#session.g.currentPage"/>">上一页</a></li>
							</s:if>
							<s:else>
							
							</s:else>
							<s:iterator begin="1" end="#session.g.totalPage" var="i">
							
								<s:if test="#session.g.currentPage+1==#i">
									<li class="active"><a
										href="/SecondaryMarket/sale?opt=<s:property value="#session.opt"/>&page=<s:property value="#i"/>"><s:property
												value="#i" /></a></li>
								</s:if>
								<s:else>
									<li><a
										href="/SecondaryMarket/sale?opt=<s:property value="#session.opt"/>&page=<s:property value="#i"/>"><s:property
												value="#i" /></a></li>
								</s:else>
							</s:iterator>
							<s:if test="page==#session.g.totalPage">
								
							</s:if>
							<s:else>
								<li><a
									href="/SecondaryMarket/sale?opt=<s:property value="#session.opt"/>&page=<s:property value="#session.g.currentPage+2"/>">下一页</a></li>
							</s:else>
							<s:if test="page==#session.g.totalPage">
								
							</s:if>
							<s:else>
							<li>
							<a href="/SecondaryMarket/sale?opt=<s:property value="#session.opt"/>&page=<s:property value="#session.g.totalpage"/>">末页</a>
							</li>
							</s:else>
						</ul>
					</nav>
				</div>


			</div>
		</div>

		<s:include value="footer.jsp"></s:include>

	</div>
</body>
</html>